import React, { useState } from 'react'

function A(props) {
    console.log('A渲染');
    
    return (
        <div style={{ width: '200px', height: '200px', backgroundColor: 'skyblue' }}>
            我是组件A,我是天蓝色
            <button onClick={props.changAppName}>点击App的name+s</button>
        </div>
    )
}

export default React.memo(A)